<%@page import="helpers.UrlHelper"%>
<%
String title = (String) request.getParameter("title");
String description = (String) request.getParameter("description");
String keywords = (String) request.getParameter("keywords");
String ogSiteName = (String) request.getParameter("ogsite_name");
String ogTitle = (String) request.getParameter("ogtitle"); 
String ogUrl = (String) request.getParameter("ogurl");
String ogImage = (String) request.getParameter("ogimage");
String ogDescription = (String) request.getParameter("ogdescription");

if (title == null)
	title = "TraceIp.us - Tool find Ip location";

if (description == null)
	description = "This tool help you find IP domain and IP location.";

if (keywords == null)
	keywords = "lookup,trace,ip,ip address,ip geo,my ip,my ip address,check ip address,find ip,find domain ip,ip location";

if (ogSiteName == null)
	ogSiteName = "TraceIP.us";

if (ogTitle == null)
	ogTitle = "TraceIp.us - Tool find Ip location";

if (ogDescription == null)
	ogDescription = "This tool help you find IP domain and IP location.";

if (ogUrl == null)
	ogUrl = UrlHelper.getServerUrl(request);

if (ogImage == null)
	ogImage = UrlHelper.getServerUrl(request) + "/images/logo.png";

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="<%=description.replaceAll("[\"\']+", "")%>" >
<meta name="Keywords" content="<%=keywords.replaceAll("[\"\']+", "")%>" >
<meta itemprop="name" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" />    
<meta itemprop="description" content="<%=ogDescription %>" />
<meta property="og:site_name" content="<%=ogSiteName %>" >
<meta property="og:title" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" >
<meta property="og:url" content="<%=ogUrl%>" >
<meta property="og:image" content="<%=ogImage%>" >
<meta property="og:description" content="<%=ogDescription %>" >
<title><%=title%></title>

<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/custom.css" rel="stylesheet">
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
</head>
<body>
	<div class="container container-narrow">

      <div class="masthead">
        <ul class="nav nav-pills pull-right">
          <li><a href="/">Home</a></li>
          <li><a href="/domain/">Check Domain</a></li>
          <li><a href="/ip/">Check Ip</a></li>
        </ul>
        <h3 class="muted logo"><a href="/"><img src="/images/logo.png" width="125"></a></h3>
      </div>

      <hr>